// 定义搜索的接口
import { request } from '../utils/request.js'
export const getSearchSuggestions = query => request({
  method: 'get',
  url: '/v1_0/suggestion',
  params: {
    q: query
  }
})

// 获取搜索结果的请求
export const getSearchResult = params => request({
  method: 'get',
  url: '/v1_0/search',
  params
})
